package com.hxh.rpc.provider;

import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * RPC Provider注解
 *
 * @author hxh
 * @date 2022/3/2
 * @since 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Component
public @interface RpcProvider {
    Class<?> serviceInterface() default Object.class;

    String serviceVersion() default "1.0.0";
}
